Alignment and deskew device, system and method

ABSTRACT

A device, system and method for aligning data received on a plurality of data lanes in a data link are disclosed. One or more alignment vectors are generated for each of a plurality of data lanes where each alignment vector represents a location of an alignment character in an associated one of the data lanes. For each data lane, a plurality of alignment vectors may be associated with one or more alignment windows associated with the data lane. If the alignment vectors of the data lanes are associated with a common alignment window, an alignment position may be selected for each data lane.

BACKGROUND

[0001] 1. Field

[0002] The subject matter disclosed herein relates to data communication. In particular, the subject matter disclosed herein relates to data communication in a data link.

[0003] 2. Information

[0004] Data transmission standards directed to high speed communication over optical transmission media such as 10 and 40 Gigabit Ethernet, or Synchronous Optical Network/Synchronous Digital Hierarchy (SONET/SDH) have brought about a need for high speed communication between components or modules in systems employing such standards. For example, IEEE P802.3ae defines a 10 Gigabit Attachment Unit Interface (XAUI) to transmit data between 10 Gigabit Media Independent Interfaces (XGMIIs) through a data link. Also, the Optical Internetworking Forum (OIF) defines System Packet Interfaces (SPIs) at Levels SPI-1 through SPI-5 for different data rates.

[0005] Serial links typically transmit encoded symbols on each of a plurality of parallel data lanes coupled between a source and destination. Symbols received from each data lane at the destination are typically decoded to provide bits to be combined with decoded data received from other data lanes. Due to physical characteristics of the data link, the data received from the data lanes may become temporally misaligned or skewed. Accordingly, symbols or decoded data received from the data lanes is typically re-aligned or deskewed prior to combining. Alignment character symbols are typically inserted in to data lanes to enable realignment of the data lanes at a destination as described in IEEE standard 802.3—2000, clause 36.

BRIEF DESCRIPTION OF THE FIGURES

[0006] Non-limiting and non-exhaustive embodiments of the present invention will be described with reference to the following figures, wherein like reference numerals refer to like parts throughout the various figures unless otherwise specified.

[0007]FIG. 1A shows a system to transmit data between two points in data lanes according to an embodiment of the present invention.

[0008]FIG. 1B shows a system to transmit data between two points in data lanes according to an alternative embodiment of the present invention.

[0009]FIG. 2 shows a receiving portion at a destination of a data link according to an embodiment of the present invention.

[0010]FIG. 3 shows an alignment and deskew section according to an embodiment of the receiving portion shown in FIG. 2.

[0011]FIG. 4 shows an alignment search circuit according to an embodiment of the alignment and deskew section shown in FIG. 4.

[0012]FIG. 5 shows a state diagram illustrating states of a finite state machine according to an embodiment of the alignment search circuit shown in FIG. 4.

[0013]FIG. 6 shows an alignment sort circuit according to an embodiment of the alignment and deskew section shown in FIG. 4.

[0014]FIG. 7 shows a selection circuit to select an alignment for a data lane according to an embodiment of the alignment sort circuit shown in FIG. 6.

DETAILED DESCRIPTION

[0015] Reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrase “in one embodiment” or “an embodiment” in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in one or more embodiments.

[0016] “Machine-readable” instructions as referred to herein relates to expressions which may be understood by one or more machines for performing one or more logical operations. For example, machine-readable instructions may comprise instructions which are interpretable by a processor compiler for executing one or more operations one or more data objects. However, this is merely an example of machine-readable instructions and embodiments of the present invention are not limited in this respect.

[0017] “Machine-readable medium” as referred to herein relates to media capable of maintaining expressions which are perceivable by one or more machines. For example, a machine readable medium may comprise one or more storage devices for storing machine-readable instructions. Such storage devices may comprise any type of storage media including, for example, optical, magnetic or semiconductor storage media. However, these merely examples of a machine-readable medium and embodiments of the present invention are not limited in this respect.

[0018] “Logic” as referred to herein relates to structure for performing one or more logical operations. For example, logic may comprise circuitry which provides one or more output signals based upon one or more input signals. Such circuitry may comprise a finite state machine which receives a digital input and provides a digital output, or circuitry which provides one or more analog output signals in response to one or more analog input signals. Such circuitry may be provided in an application specific integrated circuit (ASIC) or field programmable gate array (FPGA). Also, logic may comprise machine-readable instructions stored in a memory in combination with processing circuitry to execute such machine-readable instructions. However, these are merely examples of structures which may provide logic and embodiments of the present invention are not limited in this respect.

[0019] A “data link” as referred to herein relates to circuitry to transmit data between devices. A data link may provide point to point communication between two devices in either unidirectionally or bi-directionally. However, this is merely an example of a data link and embodiments of the present invention are not limited in this respect.

[0020] A data link may comprise a plurality of “data lanes” where each data lane transmits data from a source to a destination independently of other data lanes. Each data lane in a data link may transmit symbols in a transmission medium which are decoded into data bits at a destination. The decoded bits from the data lanes may then be combined. However, this is merely an example of data lanes that may be used to transmit data in a data link and embodiments of the present invention are not limited in these respects.

[0021] Data or symbols received from a data lane at a destination of a serial data link may be partitioned into “temporal segments” of a predetermined length. For example, symbols received from a data lane may be decoded into bits to be provided on data cycles at a parallel interface as temporal segments. Also, bits from decoded symbols provided at such a parallel interface may be further partitioned into additional temporal segments. However, these are merely examples of how data received from a data lane may be partitioned into temporal segments and embodiments of the present invention are not limited in these respects.

[0022] An “alignment character” as referred to herein relates to a symbol inserted among symbols transmitted in a data lane to provide a temporal alignment reference to symbols transmitted in other data lanes. For example, a destination may receive a plurality of data lanes of a data link where an alignment character is periodically inserted among the symbols transmitted in each data lane. If the data from the data lanes is temporally skewed, the destination may align the data received from the data lanes according to the inserted alignment characters. However, this is merely an example of an alignment character and embodiments of the present invention are not limited in this respect.

[0023] An “alignment vector” as referred to herein relates to information indicating a location of an alignment character within a segment of symbols transmitted in a data lane. For example, an alignment vector may indicate which symbol among a segment of symbols comprises an alignment character. An alignment vector may also indicate a location of an alignment character in a bit stream generated from decoding segment of symbols transmitted in a data lane. However, these are merely examples of an alignment vector and embodiments of the present invention are not limited in these respects.

[0024] An “alignment position” as referred to herein relates to a temporal orientation of data from a data lane in reference to data in at least one other data lane. For example, a serial data link may transmit data in data lanes that is temporally skewed with respect to one another. An alignment position may be selected for one or more of the skewed data lanes such that the data lanes are temporally aligned. However, this is merely an example of an alignment position and embodiments of the present invention are not limited in this respect.

[0025] An “alignment window” as referred to herein relates to a temporal range over which an alignment character of each data lane of a data link may be detected or located. For example, alignment characters of respective data lanes may be detected or located in a “common alignment window” such that an alignment position for each data lane may be selected. However, these are merely examples of an alignment window and common alignment window, and embodiments of the present invention are not limited in these respects.

[0026] Briefly, embodiments of the present invention relate to a device, system and method for aligning data received on a plurality of data lanes in a data link. One or more alignment vectors are generated for each of a plurality of data lanes where each alignment vector represents a location of an alignment character in an associated one of the data lanes. For each data lane, a plurality of alignment vectors may be associated with one or more alignment windows associated with the data lane. If the alignment vectors of the data lanes are associated with a common alignment window, an alignment position may be selected for each data lane. However, this is merely an example embodiment and embodiments of the present invention are not limited in this respect.

[0027]FIG. 1A shows a system 10 to transmit data between two points in data lanes according to an embodiment of the present invention. A data transceiver 12 may transmit data to or receive data from a transmission medium through a media dependent interface (MDI) 22. For example, the data transceiver 12 may comprise a physical medium attachment (PMA) and physical medium dependent (PMD) and physical coding sublayer (PCS) sections to communicate with an optical transmission medium according to IEEE standard 802.3ae, clauses 48 through 51.

[0028] The system 10 may also comprise a media access control (MAC) device 14 to communicate with the data transceiver 12 through a media independent interface (MII) such as a 10 Gigabit MII (XGMII) 20 formed according to IEEE standard 802.3ae, clause 46. The MAC device 14 may also be coupled to any one of several types of input/output systems such as, for example, a multiplexed data bus or a switch fabric. However these are merely examples of how a MAC device may be integrated with a communication platform and embodiments of the present invention are not limited in these respects.

[0029] The MAC device 14 and data transceiver 12 may be coupled to the data transceiver 12 by a serial data link such as 10 Gigabit Attachment Unit Interface (XAUI) 16 formed according to IEEE standard 802.3ae, clause 47. XAUI 16 may comprise first and second XGMII extender sublayer (XGXS) circuits 18. The first and second XGXS circuits 18 may be coupled on a printed circuit board by traces extending up to approximately 50 cm. in a backplane configuration. However, this is merely an example of how a MAC device may be coupled to a data transceiver over a data link and embodiments of the present invention are not limited in these respects.

[0030] In the illustrated embodiment, the XGXS circuits 18 may transmit data across the XAUI 16 in multiple data lanes where each data lane transmits data in a particular direction either toward or away from the data transceiver 12. In the illustrated embodiment, data transmitted in different lanes in a time period to an XGXS circuit 18 may be recombined. Accordingly, the XGXS circuits 18 may deskew data transmitted on different data lanes to maintain proper alignment of the data received on the different data lanes.

[0031]FIG. 1B shows a system 30 to transmit data between two points in data lanes according to an alternative embodiment of the present invention. A physical layer device 36 may transmit data to or receive data from an optical transmission medium (not shown) through a serializer/deserializer (SERDES) 38 and optical transceiver 40. The physical layer device may comprise a framer (not shown) and forward error correction logic (not shown) to transmit or receive data according to any one of several formats provided by Asynchronous Transfer Mode (ATM) or SONET/SDH communication systems. However, these are merely examples of communication systems that may be supported by a framer and forward error correction and embodiments of the present invention are not limited in these respects. The SERDES 38 and physical layer device 36 may transmit data across a SERDES Framer Interface (SFI).

[0032] The physical layer device 36 may be coupled to a link layer device 32 over a backplane by a System Packet Interface (SPI) 34 as defined by the Optical Internetworking Forum (OIF). The link layer device 32 may be coupled to any one of several input/output systems (not shown) in a communication platform such as, for example, a switch fabric or a multiplexed bus. The link layer device 32 may also comprise packet forwarding logic such as a network processing element or packet classification ASIC.

[0033] The SPI 34 comprises a plurality of data lanes to transmit data each direction between the link layer device 32 and physical layer device 36. In the illustrated embodiment, data transmitted through the SPI 34 in different lanes may be recombined. Accordingly, a destination end of the SPI 34 may deskew data transmitted on different data lanes to maintain proper alignment of the data received on the different data lanes.

[0034]FIG. 2 shows a receiving portion of a destination device coupled to a data link according embodiments of the system 10 shown in FIG. 1A or system 30 shown in FIG. 1B which may be used to deskew data received on different data lanes. A receiver 52 may receive encoded data (e.g., encoded in symbols) on four data lanes of a serial link where each data lane is transmitted on a corresponding one of four differential pairs 56. The receiver 52 may comprise, for example, a symbol decoder, a deserializer, a synchronization unit and a bit alignment unit. The data on each of the four differential pairs includes a periodic alignment character indicating an alignment of the data received one data lane relative to data received on any of the other three data lanes.

[0035] The receiver 52 may decode signals on the differential pairs to provide a plurality of synchronously clocked parallel bits for each of the four data lanes and a lane_sync_status bit to ensure proper bit level alignment on data cycles. Data received on the differential pairs 56 may be encoded according to an 8b/10b encoding scheme known to those of ordinary skill in the art. Accordingly, the receiver 52 may decode symbols from the differential pairs using the 8b/10b decoding scheme. In the presently illustrated embodiment, a temporal segment of forty parallel bits is provided on for each data lane on data cycles. These forty bits in temporal segments may include including thirty-two data bits, four control bits and four bits comprising an alignment vector. An alignment and deskew control section 54 receives the forty parallel bit output for each data lane and provides a corresponding output of thirty-two data bits and four control bits.

[0036] The alignment vector comprises four alignment flags where each alignment flag comprises a bit corresponding with a portion of a temporal segment. A “1” at a position in the alignment vector indicates a presence of the alignment character in a corresponding portion (e.g., ten bits) of the forty parallel data bits while “0” indicates an absence of the alignment character in the corresponding portion. However, this is merely an example of how an alignment vector may comprise information to represent a location of an alignment character in a data lane, and embodiments of the present invention are not limited in this respect.

[0037]FIG. 3 shows an alignment and deskew section 100 according to an embodiment of the receiving portion shown in FIG. 2. A deskew control section 104 may initiate an alignment search process by asserting a signal enable_deskew. For each data lane, a corresponding alignment sort section 106 receives the forty bit parallel data input xg_tx_dca_x_(—)8b on each data cycle and provides a corresponding output xg_tx_dc_x_ad. Each alignment sort section 106 examines a four bit field comprising a four bit alignment vector A_flag for three consecutive data cycles (t, t-1 and t-2) to be provided to an alignment search section 102. In response, the alignment search section 102 may provide an alignment selection signal sel_reg to each alignment sort section 106 to indicate an alignment position for the corresponding output xg_tx_dc_x_ad. In response to a corresponding alignment selection signal sel_reg, each alignment sort section 106 may provide a thirty-six bit output xg_tx_dc_x_ad for a data lane which is aligned with data output from the other alignment sort sections 106 for the other data lanes, and a four bit alignment vector A_flag.

[0038]FIG. 4 shows an alignment search circuit 150 according to an embodiment of the alignment search circuit 102 shown in FIG. 3. The receiver 52 may set a signal lane_sync_status for each data lane in response to detection of a stable “comma” character for the data lane to indicate bit level alignment at the decoder. An AND gate 156 receives the link_sync_status signals from the receiver 52 for each data lane and provides a combined result to an alignment search finite state machine (FSM) 154.

[0039] The alignment search circuit 150 also provides an alignment selection signal sel_reg 158 for each data lane. For each data lane, the alignment search circuit 150 defines four eighty-bit overlapping alignment windows where each alignment window straddles two or more forty-bit temporal segments. For each alignment window, an OR gate 162 receives portions of an alignment vector A_flag at data cycle times t, t-1 or t-2. In the presently illustrated embodiment, forty bit temporal segments of data xg_tx_dca_x_(—)8b are provided at the alignment and deskew control section 54 on a data lane for each data cycle time. Each of four alignment flags (shown as a, b, c or d) in an alignment vector A_flag identify the presence (as a “1”) or absence (as a “0”) of an alignment character in a corresponding ten-bit segment of the input xg_tx_dca_x_(—)8b to a data lane. Accordingly, the four windows span twelve ten-bit intervals where adjacent windows overlap by seventy bits.

[0040] Each OR gate 162 detects the presence of an alignment character in a corresponding window from alignment vectors A_flag. Each of a plurality of AND gates 152 receives the outputs of OR gates 162 from each data lane at a particular window associated with the AND gate 152. Each AND gate 152 detects the presence of an alignment character in a corresponding eighty-bit alignment window for each of the four data lanes. The align search FSM 154 receives an indication from an OR gate 164 of a detection of an alignment character for each data lane on at least one common eighty-bit alignment window.

[0041] Each of the OR gates 162 forwards its input (i.e., portions of time shifted alignment vectors A_flag) to a multiplexer 168. A minimum spacing of consecutive alignment characters in a data lane (e.g., a minimum of spacing of sixteen non-alignment characters as shown in the presently illustrated embodiment) may provide inputs to the OR gates 162 as “one hot” eight bit words where a single set bit indicates a portion in which an alignment character is detected. If an alignment character is detected in an alignment window for each of the data lanes, an AND gate 152 corresponding to the window will cause a multiplexer 168 for each data lane to output a corresponding one hot eight bit vector as an alignment selection vector sel_reg 158 corresponding to the data lane.

[0042]FIG. 5 shows a state diagram illustrating states of the align search FSM 154 according to an embodiment of the alignment search circuit 150 shown in FIG. 4. When an align_valid signal is asserted, the deskew_control section 104 may begin observing data received from the link and suspend observing data from the link when the align_valid signal is de-asserted. The align search FSM 154 may be in either a locked state 204 or a search state 202. The align search FSM 154 may transition to the search state 202 in response to a synch_status output of the AND gate 156 becoming low or the enable_deskew signal being asserted by the deskew enable circuit 104. While in the search state 202, the align search FSM 154 may cause the align_valid signal to be low while setting the signal A_SORT_EN (enabling the writing of the registers sel_(—)0..3_reg while FSM 154 is in the search state). While in the locked state 204, A_SORT_EN may be de-asserted while the last eight bit values in registers sel_(—)0..3_reg are stored.

[0043] The align search FSM 154 may transition to the locked state 204 in response to setting of synch_status from the and gate 156 and setting of CHECK_OK from OR gate 164 indicating detection of an alignment character in a common window for each of the data lanes. While in the locked state 204, the align search FSM 154 may assert the signal align_valid and de-assert A_SORT_EN.

[0044]FIG. 6 shows an alignment sort circuit 220 according to an embodiment of the alignment sort circuits 106 shown in FIG. 3. In the illustrated embodiment, each data lane is associated with an alignment sort circuit 220 to provide aligned data in response to a corresponding alignment selection vector 258 generated by the align search section 102. In the illustrated embodiment, a forty bit aligned output 226 may be provided from any one of eight possible selections of forty adjacent bits based upon the one hot alignment selection vector sel_reg.

[0045] On each data cycle, the alignment sort circuit 220 receives four ten bit portions xg_tx_dca_(—)0x_(—)8b of the forty bit temporal segment. Thirty bits of the forty bit input 232 are forwarded to a multiplexer 222. Delay registers 228 and 236 also provide delayed versions of the forty bit input 232 on subsequent data cycles such that the multiplexer 222 receives eleven consecutive ten-bit portions of the data received on a data lane straddling three temporal segments. The multiplexer 222 may then select four consecutive ten-bit portions as an aligned output 226 in response to sel_reg. Bits for each of the alignment vectors 230 may be provided from fixed bit locations in each of the ten bit inputs xg_(—tx)_dca_(—)0b_(—)8b.

[0046]FIG. 7 shows a selection circuit 280 to select aligned for a data lane according to an embodiment of the multiplexer 222 in the alignment sort circuit 220 shown in FIG. 6. In the presently illustrated embodiment, the selection circuit 280 may be replicated or instantiated forty times in the alignment sort circuit 220 such that each replication or instantiation of the selection circuit 280 provides one bit DOUT[i] of the aligned forty bit output 226. Each bit of the one hot selection vector sel_reg is provided as a first input to a corresponding AND gate while a second input to the AND gate is a bit from the 110 bit input to the selection register 222. The second inputs to the AND gates are provided at ten bit offsets such that output 284 provides one of forty bits in the output 226 associated with the “hot” bit of sel_reg.

[0047] While there has been illustrated and described what are presently considered to be example embodiments of the present invention, it will be understood by those skilled in the art that various other modifications may be made, and equivalents may be substituted, without departing from the true scope of the invention. Additionally, many modifications may be made to adapt a particular situation to the teachings of the present invention without departing from the central inventive concept described herein. Therefore, it is intended that the present invention not be limited to the particular embodiments disclosed, but that the invention include all embodiments falling within the scope of the appended claims. 

What is claimed is:
 1. A method comprising: generating one or more alignment vectors for each of a plurality of data lanes, each alignment vector comprising information representing a location of an alignment character in an associated one of the data lanes; for each data lane, associating a plurality of alignment vectors generated from the data lane to identify one or more alignment windows associated with the data lane; associating respective alignment windows associated with the data lanes to detect a common alignment window; and determining an alignment position from among a plurality of alignment positions for each data lane in response to detecting the common alignment window.
 2. The method of claim 1, wherein the method further comprises: segmenting data from each of the data lanes into temporal segments comprising a fixed number of bits; generating an alignment vector for each temporal segment of each data lane; and selecting the alignment window for each data lane from among a plurality of overlapping alignment windows based upon a plurality of alignment vectors generated from the data lane.
 3. The method of claim 2, wherein the alignment vector comprises a plurality of bits, each bit representing a presence or absence of an alignment character in a portion of a temporal segment associated with the alignment vector.
 4. The method of claim 2, wherein each alignment window spans portions of at least two temporal segments.
 5. The method of claim 1, the method further comprising resetting a search process in response to an absence of a common alignment window.
 6. An apparatus for deskewing data lanes comprising: an alignment search circuit to associate a plurality of alignment vectors of each data lane to identify one or more alignment windows associated with the data lane, each alignment vector comprising information representing a location of an alignment character in an associated one of the data lanes, and to detect a common alignment window among alignment windows associated with the respective data lanes; and an alignment sort circuit to determine, for each data lane, an alignment position from among a plurality of alignment positions in response to detecting the common alignment window.
 7. The apparatus of claim 6, wherein the alignment search circuit comprises: logic to segment data from each of the data lanes into temporal segments comprising a fixed number of bits; and logic to select the alignment window for each data lane from among a plurality of overlapping alignment windows based upon a plurality of alignment vectors generated from the data lane.
 8. The apparatus of claim 7, wherein the alignment sort circuit comprises logic to generate an alignment vector for each temporal segment of each data lane.
 9. The apparatus of claim 8, wherein the alignment vector comprises a plurality of bits, each bit representing a presence or absence of an alignment character in a portion of a temporal segment associated with the alignment vector.
 10. The apparatus of claim 8, wherein each alignment window spans portions of at least two temporal segments.
 11. The apparatus of claim 6, wherein the alignment search circuit further comprises logic to reset a search process in response to an absence of a common alignment window.
 12. A system comprising: a first extended sublayer circuit coupled to an MII to generate a plurality of data lanes; and a second extended sublayer circuit comprising: a decoder circuit to generate one or more alignment vectors for each of the data lanes, each alignment vector comprising information representing a location of an alignment character in an associated one of the data lanes; an alignment search circuit to associate a plurality of alignment vectors of each data lane to identify one or more alignment windows associated with the data lane, and to detect a common alignment window among alignment windows associated with the respective data lanes; and an alignment sort circuit to determine, for each data lane, an alignment position from among a plurality of alignment positions in response to detecting the common alignment window.
 13. The system of claim 12, the system further comprising a media access controller coupled to the MII.
 14. The system of claim 13, wherein the system further comprises a switch fabric coupled to the media access controller.
 15. The system of claim 13, wherein the system further comprises a multiplexed data bus coupled to the media access controller.
 16. The system of claim 12, the system further comprising an optical transmission medium coupled to the second extended sublayer circuit through a physical coding sublayer circuit.
 17. The system of claim 12, wherein the alignment search circuit comprises: logic to segment data from each of the data lanes into temporal segments comprising a fixed number of bits; and logic to select the alignment window for each data lane from among a plurality of overlapping alignment windows based upon a plurality of alignment vectors generated from the data lane.
 18. The system of claim 17, wherein the alignment sort circuit comprises logic to generate an alignment vector for each temporal segment of each data lane.
 19. The system of claim 18, wherein the alignment vector comprises a plurality of bits, each bit representing a presence or absence of an alignment character in a portion of a temporal segment associated with the alignment vector.
 20. The system of claim 18, wherein each alignment window spans portions of at least two temporal segments.
 21. The system of claim 12, wherein the alignment search circuit further comprises logic to reset a search process in response to an absence of a common alignment window.
 22. A system comprising: a link layer device; and a physical layer device coupled to the link layer device by a system packet interface (SPI) comprising a plurality of data lanes, the physical layer device comprising: an alignment search circuit to associate a plurality of alignment vectors of each data lane to identify one or more alignment windows associated with the data lane, and to detect a common alignment window among alignment windows associated with the respective data lanes; and an alignment sort circuit to determine, for each data lane, an alignment position from among a plurality of alignment positions in response to detecting the common alignment window.
 23. The system of claim 22, wherein the physical layer device further comprises a framer.
 24. The system of claim 23, wherein the physical layer device further comprises a serializer/deserializer coupled to the framer.
 25. The system of claim 24, wherein the physical layer device further comprises an optical transceiver coupled to the serializer/deserializer.
 26. The system of claim 22, wherein the system further comprises a switch fabric coupled to the link layer device.
 27. The system of claim 22, wherein the system further comprises a multiplexed data bus coupled to the link layer device. 